Skip to main content

Token

Token

Constructor

Function NameParameter(s)Description
constructorref self: ContractState, token_manager: ContractAddress, name: felt252, symbol: felt252, decimals: u8Initializes the Token contract with the specified parameters, setting up the token's basic attributes such as its manager, name, symbol, and decimals. Initializes the ERC20 related functionality with the given name and symbol, and sets the token manager and decimals.

Operation methods

Method NameParameter(s)Description
mintref self: TContractState, recipient: ContractAddress, amount: u256Mints tokens to a specified recipient address.
burnref self: TContractState, account: ContractAddress, amount: u256Burns tokens from a specified account address.